package com.dundun.SSO.manage;

import com.dundun.SSO.core.BaseService;
import com.dundun.SSO.manage.pojo.SsoRole;
import com.dundun.SSO.manage.query.SsoRoleQuery;

import java.util.List;

/**********************************************************
 * 版权所有：搜影科技 保留所有权利
 * 创建日期: 2017/5/6 0006 15:15
 * 创建作者: gezhangkai
 * 版    本:
 * 功    能:
 * 最后修改时间:
 * 修改记录:
 ***********************************************************/
public interface ISsoRoleService extends BaseService<SsoRole> {
    List<SsoRole> selectByPage(SsoRoleQuery ssoRoleQuery);
    Integer selectCountByPage(SsoRoleQuery ssoRoleQuery);

    List<SsoRole> selectAllParentRole(Long parentId);

    List<SsoRole> selectAllSubRole(Long id);

    List<SsoRole> selectAllParentRole(SsoRole ssoRole);

    List<SsoRole> selectAllSubRole(SsoRole ssoRole);

    boolean deleteList(List<Long> idList);

    List<SsoRole> selectAllRoleByUserId(Long userId);

    List<SsoRole> selectAllRoleByGroupId(Long groupId);
}
